home *** CD-ROM | disk | FTP | other *** search
- Rem Planet Travel
- Rem
- Rem Hey! You know the
- Rem values that appear in
- Rem the manual?
- Rem THEY'RE WRONG!
- Rem This program has them
- Rem entered correctly!
- Rem
- Rem See SPACE02.BAS for
- Rem another example
-
- cls
- Print "You're traveling to another planet!"
- Print "We need to know how much you weigh: "
- input weight
- Print "Which planet will you be traveling to?"
- Print "Choose a number from the list:"
- Print "1. Mercury"
- Print "2. Mars"
- Print "3. Venus"
- Print "4. Earth"
- Print "5. Saturn"
- Print "6. Uranus"
- Print "7. Neptune"
- Print "8. Jupiter"
- Print "9. Pluto"
- input planet
-
- if planet = 1 then
- let modify = 0.06
- let planet$ = "Mercury"
- endif
-
- if planet = 2 then
- let modify = 0.11
- let planet$ = "Mars"
- endif
-
- if planet = 3 then
- let modify = 0.81
- let planet$ = "Venus"
- endif
-
- if planet = 4 then
- let modify = 1.00
- let planet$ = "earth"
- endif
-
- if planet = 5 then
- let modify = 95.14
- let planet$ = "Saturn"
- endif
-
- if planet = 6 then
- let modify = 14.52
- let planet$ = "Uranus"
- endif
-
- if planet = 7 then
- let modify = 17.25
- let planet$ = "Neptune"
- endif
-
- if planet = 8 then
- let modify = 317.89
- let planet$ = "Jupiter"
- endif
-
- if planet = 9 then
- let modify = 0.10
- let planet$ = "Pluto"
- endif
-
- Print "Your weight on ";
- Print planet$;
- Print " is ";
- Print weight * modify
- end
-
-